<?php include('base.php')?>
<?php $this->template->startblock('main') ?>
<h2>常用选项定制</h2>
<form action="<?php echo site_url();?>post/savediy"
method="post">
<table width="100%" cellspacing="0" cellpadding="0" align="center">
	<?php foreach($pcarr as $value){?>
	<tr class="tr3">
		<td width="15%"><a style="cursor: pointer"
			onclick="CheckForm(this)"><?php echo $value['pc_name']?></a></td>
		<td id="settings">
		<ul class="list2">
			<?php foreach($value['parr'] as $val){?>
			<li><input type="checkbox" name="diydb[]" value="<?php
			echo $val['p_id']?>" <?php if($val['diy_nav']) echo 'checked';?>/> <?php echo $val['p_name']?></li>
			<?php }?>
		</ul>
		</td>
	</tr>
	<?php }?>
</table>
<br />
<center><input type="button" value="全 选" class="btn"
	onclick="CheckAll(this.form)"> <input type="submit" class="btn"
	value="提 交"></center>
</form>
<?php $this->template->endblock() ?>